<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<div dojoType="dijit.layout.BorderContainer" design="headline" gutters="false" liveSplitters="true" style="width: 100%; height: 100%;">
	<div dojoType="dijit.layout.ContentPane" splitter="false" region="top" style="height: 74px; padding: 0px;">
		<div id="welcome-leading-box">
			<div id="welcome-leading-image-right"></div>
			<div id="welcome-leading-text-panel" style="white-space: nowrap;" role="region" aria-labelledby="welcome-leading-text">
				<div id="welcome-leading-text">
					<span id="welcome-leading-title">TravelSky Identity Manager</span>
				</div>
				<div style="float: right; padding-top: 10px; padding-right: 20px; font-size: 13px; color: white; font-style: bold;">
					<security:authorize ifAllGranted="ROLE_USER">
						<c:if test="${pageContext.request.userPrincipal != null}">
            欢迎, ${pageContext.request.userPrincipal.name} |
          </c:if>
						<a href="<c:url value="/home/welcome" />" class="bannerLink">Home</a>
          |
          <a href="<c:url value="/logout" />" class="bannerLink">Logout</a>
					</security:authorize>
					<security:authorize ifAllGranted="ROLE_ANONYMOUS">
						<a href="<c:url value="/login" />" class="bannerLink" class="bannerLink">Login</a>
					</security:authorize>
				</div>
			</div>
		</div>
	</div>
	<div dojoType="dijit.layout.ContentPane" splitter="false" region="center" style="height: 31px; padding: 0;">
		<form action="" name="menuForm" method="get">
			<div dojoType="dijit.MenuBar" id="navMenu">
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 快捷入口 </span>
					<div dojoType="dijit.Menu" id="fileMenu1">
						<div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/account/allinone/create" />';document.menuForm.submit();">创建ETerm帐号</div>
					</div>
				</div>
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 任务处理 </span>
					<div dojoType="dijit.Menu" id="fileMenu2">
						<div dojoType="dijit.MenuItem" onClick="alert('file 1')">File #1</div>
						<div dojoType="dijit.MenuItem" onClick="alert('file 2')">File #2</div>
					</div>
				</div>
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 组织管理 </span>
					<div dojoType="dijit.Menu" id="fileMenu3">
						<div dojoType="dijit.MenuItem" onClick="alert('file 1')">File #1</div>
						<div dojoType="dijit.MenuItem" onClick="alert('file 2')">File #2</div>
					</div>
				</div>
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 用户管理 </span>
					<div dojoType="dijit.Menu" id="editMenu4">
						<div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/user/search" />';document.menuForm.submit();">查询用户</div>
						<div dojoType="dijit.MenuItem" onClick="alert('edit 2')">Edit #2</div>
					</div>
				</div>
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 帐号管理 </span>
					<div dojoType="dijit.Menu" id="fileMenu5">
						<div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/account/eterm/search" />';document.menuForm.submit();">eTerm帐号管理</div>
            <div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/account/omse/ascugroup/search" />';document.menuForm.submit();">OMSE Ascu Group配置管理</div>
            <div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/account/omse/ascu/search" />';document.menuForm.submit();">OMSE Ascu 配置管理</div>
            <div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/account/omse/ascuterm/search" />';document.menuForm.submit();">OMSE Ascu Term配置管理</div>
						<div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/account/usas/agent/search" />';document.menuForm.submit();">USAS Agent管理</div>
            <div dojoType="dijit.MenuItem" onClick="document.menuForm.action='<c:url value="/account/usas/pid/search" />';document.menuForm.submit();">USAS PID管理</div>
					</div>
				</div>
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 权限管理 </span>
					<div dojoType="dijit.Menu" id="fileMenu6">
						<div dojoType="dijit.MenuItem" onClick="alert('file 1')">File #1</div>
						<div dojoType="dijit.MenuItem" onClick="alert('file 2')">File #2</div>
					</div>
				</div>
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 系统配置 </span>
					<div dojoType="dijit.Menu" id="fileMenu7">
						<div dojoType="dijit.MenuItem" onClick="alert('file 1')">File #1</div>
						<div dojoType="dijit.MenuItem" onClick="alert('file 2')">File #2</div>
					</div>
				</div>
				<div dojoType="dijit.PopupMenuBarItem">
					<span> 审计报表 </span>
					<div dojoType="dijit.Menu" id="fileMenu8">
						<div dojoType="dijit.MenuItem" onClick="alert('file 1')">File #1</div>
						<div dojoType="dijit.MenuItem" onClick="alert('file 2')">File #2</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

